﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.eforceglobal.crux.DTOs;

namespace com.eforceglobal.crux.notifications
{
    public class CreateUserNotification
    {
        public void SendCreateUserNotificationToUser(UserInformation user, string RandomPassword)
        {
            List<KeyValuePair<string, string>> TagsAndValues = new List<KeyValuePair<string, string>>();
            TagsAndValues.Add(new KeyValuePair<string, string>("FullName", user.FullName));
            TagsAndValues.Add(new KeyValuePair<string, string>("UserName", user.UserName));
            TagsAndValues.Add(new KeyValuePair<string, string>("Password", RandomPassword));

            List<string> recepients = new List<string>();
            recepients.Add(user.UserEmailAddress);
            MailMan.SendMail("CreateUser", TagsAndValues, recepients); 
        }
    }
}
